package nml.mail.reg.await;

import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  hotmail_com extends Reg{

	//满
	public void reg(String username, String password) {		
		

		String url = "https://signup.live.com/signup.aspx?lic=1";
		get(url);
		
		
		
		dr.findElement(By.name("iFirstName")).sendKeys("Jim");
		dr.findElement(By.name("iLastName")).sendKeys("Mkie");
		dr.findElement(By.name("iBirthMonth")).sendKeys("March");
		dr.findElement(By.name("iBirthDay")).sendKeys("21");
		dr.findElement(By.name("iBirthYear")).sendKeys("1980");
		
		
		dr.findElement( By.cssSelector("#iGender option[2]")).click(); 
		
		dr.findElement(By.id("iliveswitch")).click();
		sleep(1000);
		dr.findElement(By.name("imembernamelive")).sendKeys(username);
		
		dr.findElement(By.name("iPwd")).sendKeys(password);
		dr.findElement(By.name("iRetypePwd")).sendKeys(password);
		
		
		dr.findElement(By.name("iCountry")).sendKeys("China");
		dr.findElement(By.name("iZipCode")).sendKeys("551400");
		dr.findElement(By.name("password2")).sendKeys(password);
		dr.findElement(By.name("password2")).sendKeys(password);
		dr.findElement(By.name("password2")).sendKeys(password);
		dr.findElement(By.name("password2")).sendKeys(password);
		dr.findElement(By.name("password2")).sendKeys(password);
		dr.findElement(By.name("password2")).sendKeys(password);
		
	 
	
		dr.findElement(By.name("door")).click();
	}

	public static void main(String[] args) {
		new hotmail_com().reg("qq331798654", "qq3131798654");
	}
	
	
}
